<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */
$app = <<<APP

[

	{
		"path": "shortvideo/list",
		"name": "ShortVideoList",
		"component": "/application/shortvideo/list",
		"meta": {
			"keepAlive": true,
			"title": "AppManage",
			"isOnly": false,
			"auth": [],
			"pagePermission": [{
				"title": "ShortVideoList",
				"index": 0,
				"url": "/app/shortvideo/list",
				"auth": ["view", "add", "edit", "del", "outport"]
			}, {
				"title": "ShortVideoManage",
				"index": 0,
				"url": "/app/shortvideo/manage",
				"auth": ["view", "add", "edit", "del", "outport"]
			}]
		}
	}, {
		"path": "shortvideo/manage",
		"name": "ShortVideoManage",
		"component": "/application/shortvideo/manage",
		"meta": {
			"keepAlive": true,
			"title": "AppManage",
			"isOnly": false,
			"auth": [],
			"pagePermission": [{
				"title": "ShortVideoList",
				"index": 0,
				"url": "/app/shortvideo/list",
				"auth": ["view", "add", "edit", "del", "outport"]
			}, {
				"title": "ShortVideoManage",
				"index": 0,
				"url": "/app/shortvideo/manage",
				"auth": ["view", "add", "edit", "del", "outport"]
			}]
		}
	}, {
		"path": "shortvideo/edit",
		"name": "ShortVideoEdit",
		"component": "/application/shortvideo/edit",
		"meta": {
			"title": "AppManage",
			"isOnly": false,
			"auth": [],
			"pagePermission": [{
				"title": "ShortVideoEdit",
				"index": 0,
				"url": "/app/shortvideo/edit",
				"auth": ["view", "add", "edit", "del", "outport"]
			}]
		}
	}, {
		"path": "shortvideo/record",
		"name": "ShortVideoRecord",
		"component": "/application/shortvideo/record",
		"meta": {
			"keepAlive": true,
			"title": "AppManage",
			"isOnly": false,
			"auth": [],
			"pagePermission": [{
				"title": "ShortVideoRecord",
				"index": 0,
				"url": "/app/shortvideo/record",
				"auth": ["view", "add", "edit", "del", "outport"]
			}]
		}
	}

]
APP;

$model = <<<MODEL

{
	"path": "/shortvideo",
	"component": "Layout",
	"redirect": "/shortvideo/list",
	"meta": {
		"menuName": "ShortVideo",
		"icon": "iconShortVideo1",
		"subNavName": [{
			"name": "ShortVideoManageNav",
			"url": [{
				"name": "ShortVideoList",
				"url": "/shortvideo/list"
			}, {
				"name": "ShortVideoManage",
				"url": "/shortvideo/manage"
			}]
		}]
	},
	"children": [{
			"path": "list",
			"name": "ShortVideo",
			"component": "/application/shortvideo/list",
			"meta": {
				"keepAlive": true,
				"title": "ShortVideo",
				"auth": [],
				"isOnly": false,
				"pagePermission": [{
					"title": "ShortVideoManageNav",
					"index": 0,
					"auth": ["view", "add", "edit", "del", "outport"]
				}]
			}
		},
		{
			"path": "manage",
			"name": "ShortVideo",
			"component": "/application/shortvideo/manage",
			"meta": {
				"keepAlive": true,
				"title": "ShortVideo",
				"auth": [],
				"isOnly": false,
				"pagePermission": [{
					"title": "ShortVideoManage",
					"index": 0,
					"auth": ["view", "add", "edit", "del", "outport"]
				}]
			}
		},
		{
			"path": "edit",
			"name": "ShortVideo",
			"component": "/application/shortvideo/edit",
			"meta": {
				"keepAlive": true,
				"title": "ShortVideo",
				"auth": [],
				"isOnly": false,
				"pagePermission": [{
					"title": "ShortVideoEdit",
					"index": 0,
					"auth": ["view", "add", "edit", "del", "outport"]
				}]
			}
		},
		{
			"path": "record",
			"name": "ShortVideo",
			"component": "/application/shortvideo/record",
			"meta": {
				"keepAlive": true,
				"title": "ShortVideo",
				"auth": [],
				"isOnly": false,
				"pagePermission": [{
					"title": "ShortVideoRecord",
					"index": 0,
					"auth": ["view", "add", "edit", "del", "outport"]
				}]
			}
		}
	]
}
MODEL;


$app_name = config('app.AdminModelList')['app_model_name'];

$menu = $app_name=='longbing_shortvideo'?$model:$app;


return ["shortvideo" => $menu];


